<?php
$form = $this->beginWidget('CActiveForm', array(
    'id' => 'contact-group-form',
    'enableAjaxValidation' => false,
));
?>

<?php echo $form->errorSummary($model, null, null, array('class' => 'message error')); ?>


<p>
    <?php echo $form->labelEx($model, 'name'); ?>
    <?php echo $form->textField($model, 'name', array('size' => 60, 'maxlength' => 64, 'class' => 'full')); ?>
</p>

<div class="action">
    <?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save', array('class' => 'button button-gray')); ?>
</div>

<?php $this->endWidget(); ?>